﻿using System;
using System.Collections.Generic;
using System.Text;

namespace eProject.Model
{
    public class Employee
    {
        public string Name{ get; set;}
        public string Surname { get; set; }
        public string Secondname { get; set; }
        public string Email { get; set; }
        public string PhoneNumber { get; set; }

        //private long id; //??
        //TODO cheking input ^

        public Employee(string name, string surname, string secondname, string email, string phonenumber)
        {
            Name = name;
            Surname = surname;
            Secondname = secondname;
            Email = email;
            PhoneNumber = phonenumber;//TODO checking
        }

        public double GetManHours(Period period)
        {
            //TODO calculation
            return (period.End - period.Begin).TotalDays*8;
        }
    }
}
